#! /usr/bin/env bash

# set peer id
echo "peer_id: vp0" > host_vars/alish03
echo "peer_id: vp1" > host_vars/alish04
echo "peer_id: vp2" > host_vars/alish05
echo "peer_id: vp3" > host_vars/alish15

echo "peer_id: vp0" > host_vars/alish06
echo "peer_id: vp1" > host_vars/alish07
echo "peer_id: vp2" > host_vars/alish08
echo "peer_id: vp3" > host_vars/alish09

# set peer enrollment id and secret
#
echo "enroll_id: test_vp0" >> host_vars/alish03
echo "enroll_id: test_vp1" >> host_vars/alish04
echo "enroll_id: test_vp2" >> host_vars/alish05
echo "enroll_id: test_vp3" >> host_vars/alish06
echo "enroll_id: test_vp4" >> host_vars/alish07
echo "enroll_id: test_vp5" >> host_vars/alish08
echo "enroll_id: test_vp6" >> host_vars/alish09
echo "enroll_id: test_vp9" >> host_vars/alish15

echo "enroll_secret: MwYpmSRjupbT" >> host_vars/alish03
echo "enroll_secret: 5wgHK9qqYaPy" >> host_vars/alish04
echo "enroll_secret: vQelbRvja7cJ" >> host_vars/alish05
echo "enroll_secret: 9LKqKH5peurL" >> host_vars/alish06
echo "enroll_secret: Pqh90CEW5juZ" >> host_vars/alish07
echo "enroll_secret: FfdvDkAdY81P" >> host_vars/alish08
echo "enroll_secret: QiXJgHyV4t7A" >> host_vars/alish09
echo "enroll_secret: wu3F1EwJWHvQ" >> host_vars/alish15

## For point exchange
# 
echo "peer_id: vp0" > host_vars/alish13
echo "peer_id: vp1" > host_vars/alish14
echo "peer_id: vp2" > host_vars/alish16
echo "peer_id: vp3" > host_vars/alish19

echo "enroll_id: test_vp0" >> host_vars/alish13
echo "enroll_id: test_vp1" >> host_vars/alish14
echo "enroll_id: test_vp2" >> host_vars/alish16
echo "enroll_id: test_vp3" >> host_vars/alish19

echo "enroll_secret: MwYpmSRjupbT" >> host_vars/alish13
echo "enroll_secret: 5wgHK9qqYaPy" >> host_vars/alish14
echo "enroll_secret: vQelbRvja7cJ" >> host_vars/alish16
echo "enroll_secret: 9LKqKH5peurL" >> host_vars/alish19
